<?php

return array(
    //listo
    'controllers' => array(
        'invokables' => array(
            'Reportes\Controller\Index' => 'Reportes\Controller\IndexController',
            'Reportes\Controller\Planilla' => 'Reportes\Controller\PlanillaController',
            'Reportes\Controller\Inscripcion' => 'Reportes\Controller\InscripcionController',
            //'Reportes\Controller\MonitoreoInscripcion' => 'Reportes\Controller\MonitoreoInscripcionController',
            'Reportes\Controller\Generic' => 'Reportes\Controller\GenericController'
        ),
    ),
    'router' => array(
        'routes' => array(
            'home' => array(
                'type' => 'Zend\Mvc\Router\Http\Literal',
                'options' => array(
                    'route' => '/',
                    'defaults' => array(
                        'controller' => 'Reportes\Controller\Index',
                        'action' => 'index',
                    ),
                ),
            ),
            // The following is a route to simplify getting started creating
            // new controllers and actions without needing to create a new
            // module. Simply drop new controllers in, and you can access them
            // using the path /reportes/:controller/:action
            'reportes' => array(
                'type' => 'Literal',
                'options' => array(
                    'route' => '/reportes',
                    'defaults' => array(
                        '__NAMESPACE__' => 'Reportes\Controller',
                        'controller' => 'Index',
                    //ojo creo que no va pero sin eso se va a un metodo de 
                    //getlist que no exite en el controlador index
                    //'action'        => 'index',
                    ),
                ),
                'may_terminate' => true,
                'child_routes' => array(
                    'default' => array(
                        'type' => 'Segment',
                        'options' => array(
                            'route' => '/:controller[/:id][/:param1][/:param2]',
                            //'route'    => '/[:controller[/:action[/:id]]]',
                            //'route'    => '/[:controller[/:action[/:id/:id2]]]',
                            'constraints' => array(
                                'controller' => '[a-zA-Z][a-zA-Z0-9_-]*',
                                'id' => '[0-9a-zA-Z]+',
                            ),
                            'defaults' => array(
                            ),
                        ),
                    ),
                ),
            ),
        ),
    ),
    //listo
    'service_manager' => array(
        'factories' => array(
            'translator' => 'Zend\I18n\Translator\TranslatorServiceFactory',
        ),
    ),
    //listo
    'translator' => array(
        'locale' => 'en_US',
        'translation_file_patterns' => array(
            array(
                'type' => 'gettext',
                'base_dir' => __DIR__ . '/../language',
                'pattern' => '%s.mo',
            ),
        ),
    ),
    'view_manager' => array(//Add this config
        'not_found_template' => 'error/404',
        'exception_template' => 'error/index',
        'strategies' => array(
            'ViewJsonStrategy',
        ),
        'template_map' => array(
            'layout/layout' => __DIR__ . '/../view/layout/layout.phtml',
            'error/404' => __DIR__ . '/../view/error/404.phtml',
            'error/index' => __DIR__ . '/../view/error/index.phtml',
        ),
    ),
    'providers' => array(
        // ...
        'Anouar\Fpdf\FpdfServiceProvider',
    ),
    'aliases' => array(
        // ...
        'Fpdf' => 'Anouar\Fpdf\Facades\Fpdf',
    )
);
